Abakt - Manual
Describes the latest test release.
This is a local copy of the website.
For recent information visit:
http://www.xs4all.nl/~edienske/abakt/
Command Line

Abakt accepts command line arguments.
Useful when creating scripts.

Syntax

Syntax: Abakt.exe [options] filename

  • filename is either an .abp or an .abg file.
    - The extension is required.
    - If no path information is provided, Abakt will try to find the file in the default Data directory (Preferences).
  • If no options are provided, or if filename is invalid, Abakt will use default settings.
Options
Overview of the command line options

The options are case-sensitive (-m is not the same as -M).

Option
Description
-b AutoExecute
Automatically executes the Action (a Profile or a Group).
-x AutoExit
Automatically closes Abakt when the operation has finished.
- Ignored if AutoExecute is false.
-m Minimize
Minimizes Abakt during the operation.
- Ignored if AutoExecute is false.
-l Create Log File
Writes the Log to file profile-filename.log in the default Log directory (see Preferences).
This option overrides the default setting on the Preferences window.
-L Do not create a Log File
This option overrides the default setting on the Preferences window.
-o "TEXT" Use a custom 'Destination/Name Template'
Replaces the Destination's Name Template in the Profile with TEXT.
Example:
"C:\Program Files\Abakt\Abakt.exe" -o "'myTemplate'" "myProfile.abp"
- Ignored for Group Actions (.abg files), only works with Profiles.
- When AutoExit is false, the Profile will be openened as a modified Profile.
- Don't forget to use single quotes if desired. See Format Text for more information.
-I "FILE" Use a custom Global Preferences File
Instructs Abakt to use FILE instead of the default global preferences file 'Abakt.ini'. Useful for debugging.
If the file does not exist it will be created.
- FILE should contain complete path information (ie. "C:\Debug\TestAbakt.prefs").
- The directory should exist, it will not be created.
Exit Codes

Abakt returns some useful exit codes when called from the command line. In a .BAT script they can be obtained with %ERRORLEVEL% after calling Abakt.exe.

See How to send mail when a backup has finished for an example.

Works with Profiles (.abp), not Groups (.abg). Does not work with 7-Zip.


Exit Codes:
  • 0: OK
  • 1: ERROR
  • 2: WARNING (OK)

Or a combination:
  • 3: ERROR+WARNING